package com.cqjtu.tto.dao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author：monkey-L
 * @description: 系统用户类
 * @date: 20:20 2021/12/8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysUser implements Serializable{

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.NONE)
    private Long userId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long departmentId;

    private String userName;

    private String userPassword;

    @TableLogic
    private Integer userDeleted;

    private String userSex;

    private String userTel;

    private String userQq;

    private String userEmail;

    private String userUnitFirst;

    private String userUnitSecond;

    private String userIdentityCard;

    private String ip;

//    用户负责的项目名称
    private String userProjectName;
}
